<?php
use yii\helpers\Html;
use yii\widgets\DetailView;
use yii\widgets\LinkPager;
use yii\helpers\Url;
Yii::$app->view->params['page']['page_title'] = '关于我们';
?>

<script>
  $(function(){
    var id = <?php 
      if($model){
        echo intval($model->id);  
      }else{
        echo 13;
      }
      
    ?>;
    if(id){
      if(id == 13){
        $('.aboutUsNavs li:eq(1)').attr('class','current').siblings().attr('class','');
      }else if(id == 15){
        $('.aboutUsNavs li:eq(2)').attr('class','current').siblings().attr('class','');
      }else if(id == 20){
        $('.aboutUsNavs li:eq(4)').attr('class','current').siblings().attr('class','');
      }else if(id == 19){
        $('.aboutUsNavs li:eq(3)').attr('class','current').siblings().attr('class','');
      }else if(id == post)
      $('.aboutUsNavs li:eq(0)').attr('class','current').siblings().attr('class','');
    }
  })
</script>

  <div class="content-wrap positionr">
   </div>
<div class="countCenter aboutUs">

  <div class="mcCont mcgCont">
    <div class="content-wrap">
      <div class="countNavs left">
      
            <ul class="aboutUsNavs">
          <a href="/post/" id="post"><li><i class="iconfont icon-circle"></i><i class="iconfont icon-zhengque"></i>平台公告</li></a>
          <?php foreach ($m as $key => $value): ?>
              <!-- <a href="13"><li><i class="iconfont icon-circle"></i><i class="iconfont icon-zhengque"></i>添品简介</li></a> -->
          <a href="<?php echo $value->id ?>"><li><i class="iconfont icon-circle"></i><i class="iconfont icon-zhengque"></i><?= Html::encode($value->title)?></li></a>
             <!--  <a href="/post/"><li><i class="iconfont icon-circle"></i><i class="iconfont icon-zhengque"></i>平台公告</li></a> -->
              <!-- <a href="20"><li><i class="iconfont icon-circle"></i><i class="iconfont icon-zhengque"></i>诚聘英才</li></a>
              <a href="15"><li><i class="iconfont icon-circle"></i><i class="iconfont icon-zhengque"></i>联系我们</li></a> -->
          <?php endforeach ?>
            </ul>
      
      </div>
      <div class="right aboutCont announceDetail">
        <div class="aboutTxt">
        <?php
        //var_dump($model);
            if($model):
            ?>
          <!-- <h1 class="tt"><a href="" class="btn-small-default right moreBtn">更多</a></h1> -->
          <div class="txt">
            <h1 class="tt1"><?= Html::encode($model->title);?>
             
            </h1>
            <p class="time"> <?= $model->create_at;?></p>
            <p class="txt1"> <?php
                if ($model->desc) {
                    echo Html::encode($model->desc);
                }
                ?></p>
            <div class="img7"><?php
               if ($model->content) {
                    echo Html::decode($model->content);
                    //<hr>
                    //';
                }
                ?></div>
           
            <?php
            else:
                echo '没有找到合适内容';
            endif;
            ?>

          </div>
         
        </div>
      </div>
    </div>
  </div>


</div>


</div>
</body>
</html>

          